### mpiexec -n 8 python local_main.py

from datetime import datetime
from mpi4py import MPI

#from info.modules.api.local_cottb_array_zero_or_no import cotblend

from local_cottb_combdeach_fun import cotblend
#from local_cottb_global_fun_onecoeff import cotblend

from globalf import *

def main():

   cottbrun=cotblend()

   if rank==0:
     a=datetime.now()

   cottbrun.cottonblending()
#   cottbrun.cottonblending(rank, size, comm)
   
   if rank==0:
     b=datetime.now()
     print('time= ', (b-a).seconds)
 
#   MPI_Finalize()	# no need for this in python

if __name__=="__main__":
   main()
 
